 // 手机号码验证    
	    jQuery.validator.addMethod("isMobile", function(value, element) {    
	      var length = value.length;    
	      return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value));    
	    }, "请正确填写您的手机号码。");
	    // 电话号码验证    
	    jQuery.validator.addMethod("isPhone", function(value, element) {    
	      var tel = /^(\d{3,4}-?)?\d{7,9}$/g;    
	      return this.optional(element) || (tel.test(value));    
	    }, "请正确填写您的电话号码。")
	 // 邮政编码验证    
	    jQuery.validator.addMethod("isemail", function(value, element) {    
	      var zip = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 
	      return this.optional(element) || (zip.test(value));    
	    }, "请正确填写您的邮箱。");  
	 // 邮政编码验证    
	    jQuery.validator.addMethod("isIdCard", function(value, element) {    
	      var zip = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/; 
	      return this.optional(element) || (zip.test(value));    
	    }, "请正确填写您的身份证。"); 
	 // 联系电话(手机/电话皆可)验证   
	    jQuery.validator.addMethod("isTel", function(value,element) {   
	        var length = value.length;   
	        var mobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;   
	        var tel = /^(\d{3,4}-?)?\d{7,9}$/g;       
	        return this.optional(element) || tel.test(value) || (length==11 && mobile.test(value));   
	    }, "请正确填写您的联系方式"); 